<div class="card border-info m-3">
    <h5 class="card-header bg-info text-white">修改</h5>
    <div class="card-body">
        <h5 class="card-title">基础信息</h5>
        <p class="card-text">请按内容提示，录入相关信息。</p>
        <div class="row mb-3">
            <div class="col-6">
                <div class="input-group">
                    <div class="input-group-prepend w-25">
                        <button class="btn btn-info border-info w-100" type="button">编号</button>
                    </div>
                    <input type="text" class="form-control border-info" [(ngModel)]="domain.serNum">
                </div>
                <span class="badge badge-danger" *ngIf="errRes?.error?.detail['GooAttribute.serNum'] !== null">{{errRes?.error?.detail['GooAttribute.serNum']}}</span>
            </div>
            <div class="col-6">
                <div class="input-group">
                    <div class="input-group-prepend w-25">
                        <button class="btn btn-info border-info w-100" type="button">备注</button>
                    </div>
                    <input type="text" class="form-control border-info" [(ngModel)]="domain.serMemo">
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <div class="col-6">
                <div class="input-group">
                    <div class="input-group-prepend w-25">
                        <button class="btn btn-info border-info w-100" type="button">一级分类</button>
                    </div>
                    <div class="col-6">
                        <ng-select
                                [items]="extend.domain.serLevel1.items"
                                [multiple]="false"
                                [closeOnSelect]="true"
                                [searchable]="true"
                                bindLabel="name" bindValue="id"
                                placeholder="{{extend.domain.serLevel1.nickname}}" tooltip="{{extend.domain.serLevel1.nickname}}"
                                [(ngModel)]="domain.fkTypeLevel1"
                                (change)="extend.domain.serLevel1.change($event)"
                                (clear)="extend.domain.serLevel1.onClear()">

                        </ng-select>
                    </div>
                </div>
                <span class="badge badge-danger" *ngIf="errRes.error?.detail['GooAttribute.serNum'] !== null">{{errRes.error?.detail['GooAttribute.serNum']}}</span>
            </div>
            <div class="col-6">
                <div class="input-group">
                    <div class="input-group-prepend w-25">
                        <button class="btn btn-info border-info w-100" type="button">二级分类</button>
                    </div>
                    <div class="col-6">
                    <ng-select
                            [items]="extend.domain.serLevel2.items"
                            [multiple]="false"
                            [closeOnSelect]="true"
                            [searchable]="true"
                            bindLabel="name" bindValue="id"
                            placeholder="{{extend.domain.serLevel2.nickname}}" tooltip="{{extend.domain.serLevel2.nickname}}"
                            [(ngModel)]="domain.fkTypeLevel2"

                            (change)="extend.domain.serLevel2.change($event)">
                    </ng-select>
                    </div>
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <div class="col-6">
                <div class="input-group">
                    <div class="input-group-prepend w-25">
                        <button class="btn btn-info border-info w-100" type="button">名称</button>
                    </div>
                    <input type="text" class="form-control border-info" [(ngModel)]="domain.name">
                </div>
            </div>
        </div>

        <div class="text-center mt-5">
            <button type="button" class="btn btn-outline-primary" (click)="func.update.req($event)">修改</button>
            <button type="button" class="btn btn-outline-primary" (click)="func.back.req($event)">取消</button>
        </div>
    </div>
</div>

<span class="badge badge-info mr-3" *ngIf="errRes?.error?.timestamp !== null">response time: {{errRes?.error?.timestamp}}</span>

<div *ngIf="false">
    <p>{{errRes?.error}}</p>
    <p>{{errRes?.error?.code}}</p>
    <p>{{errRes?.error?.description}}</p>
    <p>{{errRes?.error?.theme}}</p>
    <p>{{errRes?.error?.timestamp}}</p>
    <p>{{errRes?.error?.detail?.RR?.duration}}</p>
    <p>{{errRes?.error?.detail['GooAttribute.serNum']}}</p>
    <p>{{errRes?.error?.detail['GooAttribute.serAudit']}}</p>
    <p>{{errRes?.error?.detail['GooAttribute.serValid']}}</p>
    <p>{{errRes?.error?.detail['GooAttribute.serValid2']}}</p>
    <p>{{errRes?.headers}}</p>
    <p>{{errRes?.message}}</p>
    <p>{{errRes?.name}}</p>
    <p>{{errRes?.ok}}</p>
    <p>{{errRes?.status}}</p>
    <p>{{errRes?.statusText}}</p>
    <p>{{errRes?.url}}</p>
</div>
